home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 408_01 / makefile.old < prev    next >
Makefile  |  1993-08-06  |  2KB  |  75 lines

  1. # Makefile for SNews ver. 1.91
  2. # by Daniel Fandrich
  3.  
  4. CC    = c:\tc\tcc
  5. LINK    = c:\tc\tlink
  6.  
  7. # Source options available are:
  8. #    INCLUDE_SIG    Include the signature in outgoing mail (normally
  9. #            handled by the mail program)
  10. #    ALTPAGING    Alternate method of handling PgDn/PgUp during article
  11. #            reading -- fills the screen at the end of the article
  12. #            but is hard to follow when reading
  13. #    AMATCH        Search text using regular expressions (amatch routine)
  14. #            -- default is simple case insensitive search
  15. #OPTIONS    = -DINCLUDE_SIG -DALTPAGING
  16. CFLAGS    = -c -v -w -mc -O -Ic:\tc\include $(OPTIONS)
  17. STARTUP    = c:\tc\lib\c0c
  18. LIB    = c:\tc\lib\cc
  19.  
  20.  
  21. # Executables to make
  22.  
  23. all:    snews.exe unbatch.exe expire.exe addgroup.exe rmgroup.exe
  24.  
  25.  
  26. # Implicit compile
  27.  
  28. .c.obj:
  29.     $(CC) $(CFLAGS) $<
  30.  
  31.  
  32. # Link executables
  33.  
  34. snews.exe:    snews.obj article.obj post.obj active.obj history.obj pccharst.obj getopt.obj
  35.     $(LINK) $(STARTUP) snews article post active history pccharst getopt,snews/c/x,,$(LIB)
  36.  
  37. unbatch.exe:    unbatch.obj active.obj history.obj
  38.     $(LINK) $(STARTUP) unbatch active history,unbatch/c/x,,$(LIB)
  39.  
  40. expire.exe:    expire.obj active.obj amatch.obj
  41.     $(LINK) $(STARTUP) expire active amatch,expire/c/x,,$(LIB)
  42.  
  43. addgroup.exe:    addgroup.obj active.obj
  44.     $(LINK) $(STARTUP) addgroup active,addgroup/c/x,,$(LIB)
  45.  
  46. rmgroup.exe:    rmgroup.obj active.obj
  47.     $(LINK) $(STARTUP) rmgroup active,rmgroup/c/x,,$(LIB)
  48.  
  49.  
  50. # Object dependencies
  51.  
  52. snews.obj:    snews.c defs.h snews.h pccharst.h getopt.h
  53.  
  54. article.obj:    article.c defs.h snews.h pccharst.h
  55.  
  56. post.obj:    post.c defs.h snews.h
  57.  
  58. active.obj:    active.c defs.h
  59.  
  60. history.obj:    history.c defs.h history.h
  61.  
  62. pccharst.obj:    pccharst.c pccharst.h defs.h
  63.  
  64. unbatch.obj:    unbatch.c unbatch.h defs.h
  65.  
  66. expire.obj:    expire.c expire.h defs.h
  67.  
  68. amatch.obj:    amatch.c
  69.  
  70. addgroup.obj:    addgroup.c defs.h getopt.h
  71.  
  72. rmgroup.obj:    rmgroup.c defs.h
  73.  
  74. getopt.obj:    getopt.c getopt.h
  75.